
<div class="Breadcrumb">
    <div class="Breadcrumb-i">您当前所在的位置：<span><a href="<?php echo base_url($this->_site_path . '/news_class'); ?>">内容信息分类</a></span>&nbsp;>&nbsp;<span class="orange"><?php echo isset($news_class_data['id']) ? '修改' : '添加'; ?></span> </div>               <div class="Breadcrumb-div">
        <ul>
            <li class="Breadcrumb-tj"><a href="<?php echo base_url($this->_site_path . '/news_class/add'); ?>" >添加</a></li>
            <li class="Breadcrumb-lb"><a href="<?php echo base_url($this->_site_path . '/news_class'); ?>" >列表</a></li>
        </ul>
    </div>
</div>
<div class="box box-headtitle box-radius">
    <?php get_messagebox(); // 获取提示框 ?>
    <form method="post" enctype="multipart/form-data">

        <div class="control-group">
            <label class="control-label" for="sortname">分类名称</label>
            <div class="controls">
                <input type="text" name="sortname" id="sortname" placeholder="" value="<?php echo isset($news_class_data['sortname']) ? $news_class_data['sortname'] : ''; ?>">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="parentid">父级分类</label>
            <div class="controls">
                <?php echo form_dropdown('parentid', $drowpdown, isset($news_class_data['parentid']) ? $news_class_data['parentid'] : '', '', '--顶级分类--'); ?>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="imagemark">图片路径</label>
            <div class="controls">
                <input type="file" name="imagemark" id="imagemark" />
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="comment">排序</label>
            <div class="controls" style="width:500px">
                <input type="text" name="depth" id="depth" placeholder="" value="<?php echo isset($news_class_data['depth']) ? $news_class_data['depth'] : ''; ?>">
                <span>数值越小，排列越靠前</span>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="comment">备注</label>
            <div class="controls">
                <input type="text" name="comment" id="comment" placeholder="" value="<?php echo isset($news_class_data['comment']) ? $news_class_data['comment'] : ''; ?>">
            </div>
        </div>

        <div class="control-group control-group-submit">
            <?php if ($is_edit == TRUE) { ?>
                <button type="submit" class="btn  btn-blue btn-left">修改</button>
            <?php } else { ?>
                <button type="submit" class="btn  btn-blue btn-left">添加</button>
            <?php } ?> 
            <button type="reset" class="btn  btn-blue btn-left">重置</button>
        </div>
        <input type="hidden" name="is_submit" value="1">
        <!--__TOKEN__-->
    </form>
</div>
